﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MonitorEquipmentFrm
{
    /// <summary>
    /// 推送消息对象
    /// </summary>
    public interface IMonitorClient
    { 
        /// <summary>
        /// 获取推送的消息(需要捕获异常)
        /// </summary>
        /// <param name="info">消息信息</param>
        /// <param name="monitor">从那个对象过来的</param>
        void UpdateMessage(Info info, IMonitor monitor);

        /// <summary>
        /// 从客户端获取消息信息
        /// </summary>
        /// <returns></returns>
        Info GetInfo();
    }
}
